package com.inventive.jmscache.server;

import javax.jms.*;

/**
 * Created by IntelliJ IDEA.
 */
public class JmsCacheTopicPublisher extends JmsCacheMessageProducer implements TopicPublisher {


    public JmsCacheTopicPublisher(JmsCacheSession session, JmsCacheDestination destination) {
        super(session, destination);
    }

    public Topic getTopic() throws JMSException {
        return (JmsCacheTopic)destination;
    }

    public void publish(Message message) throws JMSException {
        super.send(message);
    }

    public void publish(Message message, int i, int i1, long l) throws JMSException {
        super.send(message, deliveryMode, priority, timeToLive);
    }

    public void publish(Topic topic, Message message) throws JMSException {
        super.send(topic, message);
    }

    public void publish(Topic topic, Message message, int i, int i1, long l) throws JMSException {
        super.send(topic, message, i, i1, l);
    }
}
